<!DOCTYPE html>
<html>
<head>
    {include file="common/meta" /}

    <style type="text/css">
    body {
        min-width: 375px;
        overflow: hidden;
        font-size: 14px;
        line-height: 1.5715;
        margin: 0;
        color: #999;
        background-image: url(static/images/login_bg.jpg);
        background-size: cover;
        background-position: 50%;
    }
    .container {
        min-height: 100vh;
        flex-direction: column;
        width: 100%;
    }
    .container .login-wrapper {
        justify-content: center;
        align-items: center;
        padding-top: 10%;
        display: flex;
    }
    .login-screen {
        border: 1px solid #eeeeee;
        background-color: #fff;
        height: 430px;
        border-radius: 1.2rem;
        overflow:hidden;
        float: left;
        background-color: rgba(255, 255, 255, 0.95);
    }
    .login-head {
        width: 420px;
        display: none;
        line-height: 445px;
        float: left;
    }
    .login-head img{
        width: 470px;
    }
    .login-form {
        padding-left: 3rem;
        padding-right: 6rem;
        padding-top: 4.5rem;
        width: 375px;
        float: left;
    }
    @media (min-width: 800px){
        .login-head {
            display: inline-block;
        }
        .login-form {
            width: 435px;
        }
    }
    .lg_sec_tit {
        color: #555555;
        display: inline-block;
        width: 100%;
        text-align: center;
        font-weight: bold;
        font-size: 24px;
        margin: 0 auto 8px auto;
        padding-right: 5px;
        zoom: 1;
    }
    .lg_sec_tit img {
        height: 50px;
        border-radius: 25px;
        margin-right: 5px;
    }
    #login-form {
        margin-top: 20px;
    }
    #login-form .input-group {
        margin-bottom: 15px;
    }
    #login-form .form-control {
        font-size: 13px;
        border: 1px solid #cccccc;
        outline: none;
        line-height: 40px;
        height: 40px;
        font-size: 14px;
    }
    #login-form .checkbox {
        margin-bottom: 20px;
    }
    .copyright {
        color: #EEE;
        position: absolute;
        bottom: 10px;
        width: 100%;
        text-align: center;
    }
</style>
    <!--@formatter:off-->
    {if $background}
        <style type="text/css">
            body{
                background-image: url('{$background}');
            }
        </style>
    {/if}
    <!--@formatter:on-->
</head>
<body>
<div class="container">
    <div class="login-wrapper">
        <div class="login-screen">
            <div class="well">
                <div class="login-head">
                    <img src="__CDN__/assets/img/login_image.jpg" style="width:100%;"/>
                </div>
                <div class="login-form">
                    <h2 class="lg_sec_tit"><img src="{$site.admin_logo}">{$site.name}</h2>

                    <form action="" method="post" id="login-form">
                        <!--@AdminLoginFormBegin-->
                        <div id="errtips" class="hide"></div>
                        {:token()}
                        <div class="input-group">
                            <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
                            <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
                        </div>

                        <div class="input-group">
                            <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
                            <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
                        </div>
                        <!--@CaptchaBegin-->
                        {if $Think.config.fastadmin.login_captcha}
                        <div class="input-group">
                            <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
                            <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length})" autocomplete="off"/>
                            <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
                                    <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
                            </span>
                        </div>
                        {/if}
                        <!--@CaptchaEnd-->
                        {if $keeyloginhours>0}
                        <div class="form-group checkbox">
                            <label class="inline" for="keeplogin" data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
                                <input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
                                {:__('Keep login')}
                            </label>
                        </div>
                        {/if}
                        <div class="form-group">
                            <button type="submit" class="btn btn-success btn-lg btn-block" style="background:#708eea;">{:__('Sign in')}</button>
                        </div>
                        <!--@AdminLoginFormEnd-->
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!--<div class="copyright">Copyright © 2022-2023 后台登录页插件 版权所有</div><!--背景特效-->
{include file="common/script" /}
</body>
</html>
